unit mywandfunc;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils,
  magick_wand,ImageMagick,ctypes;
type
  ImageLayerMethod =(
    UndefinedLayer,
    CoalesceLayer,
    CompareAnyLayer,
    CompareClearLayer,
    CompareOverlayLayer,
    DisposeLayer,
    OptimizeLayer,
    OptimizeImageLayer,
    OptimizePlusLayer,
    OptimizeTransLayer,
    RemoveDupsLayer,
    RemoveZeroLayer,
    CompositeLayer,
    MergeLayer,
    FlattenLayer,
    MosaicLayer,
    TrimBoundsLayer
  );

function MagickGetIteratorIndex(wand: PMagickWand): culong; cdecl; external WandExport;
function MagickSetIteratorIndex(wand: PMagickWand;index:culong): MagickBooleanType ;cdecl; external WandExport;
function MagickMergeImageLayers(wand: PMagickWand;method:ImageLayerMethod): PMagickWand cdecl; external WandExport;
function MagickSetResolution(wand: PMagickWand;const  x_resolution,y_resolution:double): MagickBooleanType ;cdecl; external WandExport;
function MagickSetCompression(wand: PMagickWand; const compression: CompressionType): MagickBooleanType; cdecl; external WandExport;
function MagickSetCompressionQuality(wand: PMagickWand; const quality: culong): MagickBooleanType; cdecl; external WandExport;
implementation

end.

